import java.io.DataOutput;
import java.io.IOException;
import java.util.Hashtable;

public final class by extends q {

	public long a;

	public by(long l) {
		a = 0L;
		a = l;
	}

	public final int a() {
		return 2;
	}

	public final boolean d() {
		return a != 0L;
	}

	public final int e() {
		return (int) a;
	}

	public final long f() {
		return a;
	}

	public final String toString() {
		return String.valueOf(a);
	}

	public final int hashCode() {
		return (int) a;
	}

	public final boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!(obj instanceof by))
			return false;
		by by1 = (by) obj;
		return a == by1.a;
	}

	public final void a(DataOutput dataoutput, Hashtable hashtable)
			throws IOException {
		long l = a;
		if (-64L <= l && l <= 63L) {
			dataoutput.writeByte(192 + (int) l);
			return;
		}
		if (-128L <= l && l <= 127L) {
			dataoutput.writeByte(98);
			dataoutput.writeByte((int) l);
			return;
		}
		if (-32768L <= l && l <= 32767L) {
			dataoutput.writeByte(99);
			dataoutput.writeShort((int) l);
			return;
		}
		if (0xffffffff80000000L <= l && l <= 0x7fffffffL) {
			dataoutput.writeByte(105);
			dataoutput.writeInt((int) l);
			return;
		} else {
			dataoutput.writeByte(106);
			dataoutput.writeLong(l);
			return;
		}
	}
}